Updated files to move the message -> json string conversion to the writer thread