Implement sending a raw message
Remove debug code
Update with send function