Added support for trigonometric functions