Added comments to the two methods