Working on lazy polyline creation - not perfect.