Permissions

Added automatic adding to permission groups.