Updated to use datastore instead of json.