Combine all messages into one package
Start to use a mutex.
Add an empty clock callback.