Only include dS terms if dg is True.