Improved loadStruct.