Added complex rules feature