my $timer = $mw->repeat(10, \&update_graph);