Added a call to build a directory array