Initial bunch of stuff, copied over from InteractiveGraphs4