Add new dir functionality