Modified the utility functions for the different roles