Implemented the happy case for matches.