Changed the Create Device Chain file to use a dictionary key to create the nodes in the linked list