Added message sending functionality.