Search logic and some Bootstrapping which sadly involved editing Gemfile.lock