Added a basic message handling system.