Added search logic, modified search gem spec/implement.