Refactoring: added setter for animation.