Changes to ease function