Deleted outputs to JSON files and made it output everything in final order