Added in directory checking at startup