Basic skeleton of data structure, probably not quite working yet.