Least line replacement