Attempting to cleanup magic numbers, but COUNT_OF_FUNCTIONS_IN_ANIMATION
is wrong.