Added some comments to provide clarity