Perform marshaling correctly