Added commandline option to specify file extensions.