Allow override for native code path