Implemented storing visits to trace into statistic