Added console-based C# native version