Add id for messages