Version3: Added the message queue for each device record