Added preliminary design for message and main loop