Adding DirReader reader generator function