     // Check which type the current row represents.
     switch type {
     case .TimeRemaining:
-      self.value = Battery.timeRemainingFormatted()
+      value = Battery.timeRemainingFormatted()
     case .CurrentCharge:
-      self.value = Battery.percentage()
+      value = Battery.percentage()
     case .PowerUsage:
-      self.value = Battery.powerUsage()
+      value = Battery.powerUsage()
     case .Capacity:
-      self.value = Battery.currentCharge()
+      value = Battery.currentCharge()
     case .CycleCount:
-      self.value = Battery.cycleCount()
+      value = Battery.cycleCount()
     case .Temperature:
-      self.value = Battery.temperature()
+      value = Battery.temperature()
     case .Source:
-      self.value = Battery.currentSource()
+      value = Battery.currentSource()
     case .DesignCycleCount:
-      self.value = Battery.designCycleCount()
+      value = Battery.designCycleCount()
     case .DesignCapacity:
-      self.value = Battery.designCapacity()
+      value = Battery.designCapacity()
+    case .Undefined:
+      value = ""
     }
   }
 }
 
+// MARK: RowViewControllerTypeDef
+
 ///  Represents a RowViewControllerType with information about a certain
 ///  battery status.
 ///
+///  - Undefined:        Undefined row.
 ///  - TimeRemaining:    The time remaining until full.
 ///  - CurrentCharge:    The current charge in percent.
 ///  - PowerUsage:       The current power usage in Watts.

///  - DesignCycleCount: The design cycle count.
///  - DesignCapacity:   The design capacity in mAh.
enum RowViewControllerTypeDef {
  case TimeRemaining
  case CurrentCharge
  case PowerUsage

    // Check which type the current row represents.
    switch type {
    case .TimeRemaining:
      title = NSLocalizedString("time remaining", comment: "")
    case .CurrentCharge:
      title = NSLocalizedString("percentage", comment: "")
    case .PowerUsage:
      title = NSLocalizedString("power usage", comment: "")
    case .Capacity:
      title = NSLocalizedString("charge", comment: "")
    case .CycleCount:
      title = NSLocalizedString("cycle count", comment: "")
    case .Temperature:
      title = NSLocalizedString("temp", comment: "")
    case .Source:
      title = NSLocalizedString("power source", comment: "")
    case .DesignCycleCount:
      title = NSLocalizedString("design cycle count", comment: "")
    case .DesignCapacity:
      title = NSLocalizedString("design capacity", comment: "")
    case .Undefined:
      title = ""
    }
  }

