Added code to append Locals to each other if they have the same key.