C# sample and a fix for Overlay.cs