Switch last_was_sync and terminate to bool and pack better