Moved API from C# to F#