Merged nested IF statement with parent.