added some code to parse workload.