Added factory methods for animations and states.