Rewrote everything and implemented dynamic creation of directories.