C# version of starting code.