Changed cleanNodeList to cleanModuleList
Removed unused code