moved stats insided the lamda to forestall problems with multicore running
moved stats insided the lamda to forestall problems with multicore running

ridoo/IlwisCore,ridoo/IlwisCore,ridoo/IlwisCore,ridoo/IlwisCore,ridoo/IlwisCore