Create a custom DelegateCommand class for better logging.
Call the correct method for search.