Made use of INativeInvoker to use adtarrays.