First draft of the search functionality

The options aren't working yet, but at least there is the same output as
before.