Correcting the roll over effect for discriminator/trigger frame number by a single function --kazu