Add a thin compability layer to avoid API breakage.