Added acceleration and deceleration.