Changed for F# functions instead of C# class usage.