Add one more argument to the animation process functions' for them to provide the right value depending on it.