No as i suggested it started with 0. It will increase only speed is higher than this value. Algorithm works like this
Every tick -> set maxspeed ->speed>maxspeed?speed:maxspeed
If a record speed is happened (speed>maxspeed)
than change the record value (maxspeed=speed)
else dont change it(maxpeed=maxspeed)