Using simplejson to speed things up, fixed quit on script