Added trigonometric functionality