Make max speed configurable