Ported over to wip_levels the graph-levels script from mainline