Changing the way that the traces are stored in a dict