Added rule to match if-not/do -> when-not