Add comments to clarify template behavior