Trying to abstract the directory work out to another class.