Fully functional search func.