Added first code for sending messages and initializing the system.