Added interfaces for sending and handling messages