Added additional check for overflow on timestamp and level buffer insertion.