Add addDir method