Add support for the directories.