Updated comments to make things easier to follow.