Add the animation. Improved code and documentation.