Public C# implementation of the non public 'Mata' API.