Added additional comments to the worker code.