Include repeats within maxDistance to start or end of file