Updating the helper function a bit and working on getting search up to par