Refining action based on conditions