Changed set_contents to unpack using a macro.