Add comments to functions