Need to use current size of array, no longer MAX_DIRS