Set max speed.