Removed most major iteration loops

Some still remain in OpCommands, and some OpCommands have bugs, Will be
fixed soon.