Refactor workload process

ref #411