Replaced references to pickle with gzipped JSON