Animations now work but needs refactoring.