Refactor: Send/Receive messages.


Signed-off-by: Andras Mitzki <mitzkia@gmail.com>