Added support for animations.