calculateAnimations() added
doAnimations() added