Added some comments to the methods