Environment handling of rules and module for processing