working qso averaging code