Added support for returning multiple matches based on the given criteria