Use Writer Reset to simplify main loop