Added workGroupComplete and workItemComplete callbacks.