Fixed more NameSpace issues, including for loops using string, which clashed with the module