Added some comments to clarify.