Added THEN block support.