More preparations for being able to draw sample graphs in the UI...