Added ability to create directories.