Better interop code