Added option to flag directories.