Completed initial version of MessageProcessor