Changed interface to parse a config file instead of accepting a directory path.