- Added acceleration and deceleration to program (not tested)