Small improvements

Hi Hamdi, I added a check to verify if the newrelic ext is enabled (in my case I don't have newrelic on dev) and a custom parameter to record the search parameter. hope it helps

Gabriele