Added easing function - Fixes #9