Marker optimization: Allow to proces only a subset of the trajectory