Added trigonometric functions