Duplicate code to draw in-progress lines.