Added a duration for gliding