Trying to accelerate/decelerate with sine wave