Refactor Dir: No need to initialize empty slices