Moved marshaled parameter to “write” method