Move search logic to model