Add logic to add new directory.