Added support for simple animations.