Made the role system modular.