Update contents to be more idiomatic F# code