Updated AnimationLib.java