Updated to potential lines code