Added roles functionality.