Tesla said Wednesday that its profits fell last quarter as the car company run by Elon Musk shoveled more money into research and development, cutting into profits from a sharp increase in vehicle sales.

The Austin, Texas, company reported second-quarter net income of $1. 11 billion, or 32 cents per share.

That is compared to earnings of $1. 17 billion, or 33 cents per share, in the same quarter last year.