File structure has been changed in order to use json file and recursive calls