the $junkCallback parameter is never used in the SequenceMatcher class. So the lines 193 - 207 (chainB function) Maybe that can be removed for good.