Fixed templates with regards to Sine and Cosine naming.