Added the get record with criteria method