Control speed, acceleration so as to follow desired speed profile