Added adding directory capability.