Add inner-pingpong loop mode, update init patch.