Fix role definition so result object can be more easily accessed