Earnings per share topped expectations, while revenue came up short.