Adding new variables and formatting json.