Added rootDir param