Implemented the animation generator