Removed named unions to keep compatibility with F# 3.0