Adding C# API changes to support custom scans.