Parameter parsing, directory scanning