Updated velocity to also hold a max speed.