Added support for animations and trigonometric functions