Adding method to search in model