More calculations for animations.