Implemented message sending, could be extented to control the program if required