This is a temporary function that needs to be removed after datastore migration.