Add option for nested rules.