Adding C# Simulator code