Adding more checks to the json file