Added functionality for finding object using criteria to filter the results