Add 4-byte header to messages so that we can have different message types