Fixed the way that current acceleration is calculated, it now depends on max velocity and max acceleration.