Added support for group and role configuration (buggy).