Compute statistics new