In case we got more meter data than we wanted, it fails. Hack around by rejecting repeated data.
Fix gain addrees calculation.