Added check to balance member and single lines for ports