Add compatibility mode with v1.