Updated condition to test for stage.