Now uses the WriteArena method instead of the local one.