Removed check for directories.