Added logic to consider all the updating actions within if expressions.