Added a ease function.