Update comments to clarify the code.