Made changes to work with new create_resources and JSON hashes