Restructured Nu in a more idiomatic F# style.