Cleaned up some of the functions imported from the F# PowerPack.