Added comments to the function