Made animation times be based on variable.