Added statistic variables
And started to implement them in step()