Changed search to allow passing in a get variable