Clean up the code using QuickMod(Version)Ref