Add timestamps to messages
Simplify ID generation