Remove unnecessary code from LoopWriter.