Workflow execution-Porting code from StartCluster