This is a rewrite of some of the IO code to handle larger loads of set data