Possible to specify max length of trajectories