Make Search a module to make its function clearer