Was recalculating the cosine and sine