Move search to model.