Fix duration bug and adjust animations.