```$VAR``` is renamed ```$search_parameter```

As for the variable variable - it's was easear for me to request it from the object ... I can change it if you think it will be better.