Add new directory function implemented