Moved MatchLength to own file.