Best working detection of matches