Added global databag handling + auto generating rules based on group membership.