Added linked list for keeping track of message queues