Finished auto-marshaling code.