Change name of variable from $rootpath to $RootPath