Clean unnecessary code. Change sampling mode for function evaluations. Now we need the stop number of functions calls and how many samples. The rest is calculated from this.
Go back to original concept of sampling statistics if reaches a specific step