Moved Code to WorkflowRunner
fixes #2