Add option: reset_when_complete. For easier debugging.