Petrovich .NET implementation