Fixed #118. New compare function for sequence numbers. Should wrap correctly.