Line finder with split
merged to working state