First version of json_from_s3 ready. Further improvements in calculations required.