Implement logging to data structures. The actually dumping of this
information is not yet implemented.