Removed some unused code. Added easing functions.