Added option parsing and hidden file handling.