Some data structure work.