added statistics;
restart now resets statistics;