Added comments to add function