Promisified getMatches function