Fixed some ordering issues with how parameters were passed to send.