Working version of echo and non-working version of search