Fixed road segment algorithm.
Version 0.8