Added method `when()`.