The stock gained as much as 10%, the most in three months.