Added some comments to better document the workflow.