Removed unused code. Made animation smoother.