Implemented best matches