Implemented a message-id generator