Add missing code to allow animation speed change.