Added some comments to clarify a method