Made it possible to auto parse a directory.