Added some functions for roles and capabilities.