First working version incorporating D8 flow routing.