This introduces a bug: you also need to replace "unmarshaled" with "out".