Added some comments to clarify things