New: added functions to take roles/permissions