Miscellaneous C# code goes here