Three-gate configuration for maximum compartment control.