Added maximum speed constraints.