C# port of pahakia fault.