Started implementing graph and history storage (WORK IN PROGRESS)