Got directory working