Move searchLocal and searchAll into Main