Refactored code for WorkflowManager and changed row created during process.