Added some code to searchfunction

Not done