Added cancellation support and progress reporting to phase envelope utilities.