Added roles to the code.