Added comments to the methods