Add setmaxbehind function for match-time captures.