Fix int to string issue. Added debuging to find error with runStats
functionality