Added the ability to ignore files and directories.