Added initial code with hook to alter search form