Everything working (i think) just need global stats counter