Remade the auto-update graph code