Added scaling maxVelocity