Add in log messages
Add writer stub and message receive loop