Added functionality to create directory paths.