Adjusted thresholds and logging for line drawing.