Cleanup superloop and extraneous lines.