Changed readdir to simple glob over here as well