First try at implementing dashed lines.