Fix bug where couldn't pass in custom data object to send()