Correctly reading dir now