Added a rudimentary search function