Now programmatically checking if the workflow is complete