diff --git a/commerce_recurring.install b/commerce_recurring.install
index d7b096f..7743575 100644
--- a/commerce_recurring.install
+++ b/commerce_recurring.install
@@ -13,18 +13,21 @@ function commerce_recurring_schema() {
         'unsigned' => TRUE,
         'not null' => TRUE,
       ],
-      'usage_type' => [
-        'description' => 'The usage type.',
+      'usage_group' => [
+        'description' => 'The usage group defined in the subscription class.', // @TODO: Work this out.
         'type' => 'varchar_ascii',
         'length' => 255,
         'not null' => TRUE,
-        'default' => '',
       ],
       'subscription_id' => [
         'description' => 'The subscription ID.',
         'type' => 'int',
         'not null' => TRUE,
-        'default' => 0,
+      ],
+      'product_variation_id' => [
+        'description' => 'The product variation ID for this record.',
+        'type' => 'int',
+        'not null' => TRUE,
       ],
       'quantity' => [
         'description' => 'The usage quantity.',
@@ -49,4 +52,6 @@ function commerce_recurring_schema() {
       'timing' => ['start', 'end'],
     ],
   ];
+
+  return $schema;
 }
diff --git a/src/PlanHistory.php b/src/PlanHistory.php
new file mode 100644
index 0000000..7be3777
--- /dev/null
+++ b/src/PlanHistory.php
@@ -0,0 +1,34 @@
+<?php
+
+namespace Drupal\commerce_recurring;
+
+use Drupal\Core\Entity\Entity;
+
+/**
+ * A plan history value object of some kind.
+ */
+class PlanHistory {
+
+  /**
+   * Create a plan history value object from a database record out of the {commerce_recurring_plan_history} table.
+   */
+  public function __construct($record, $entityTypeManager) {
+    $this->entityTypeManager = $entityTypeManager;
+    foreach ($record as $key => $value) {
+      $this->{$key} = $value;
+    }
+  }
+
+  /**
+   * Get the plan entity.
+   */
+  public function getPlan() {
+    $storage = $this->entityTypeManager->getStorage($this->entity_type);
+
+    return $storage->load($this->entity_id);
+  }
+
+
+
+}
+
diff --git a/src/Plugin/Commerce/UsageType/Counter.php b/src/Plugin/Commerce/UsageType/Counter.php
index e69de29..2cb5d3a 100644
--- a/src/Plugin/Commerce/UsageType/Counter.php
+++ b/src/Plugin/Commerce/UsageType/Counter.php
@@ -0,0 +1,113 @@
+<?php
+
+namespace Drupal\commerce_recurring\Plugin\Commerce\UsageType;
+
+use Drupal\commerce_recurring\BillingCycle;
+use Drupal\Core\Datetime\DrupalDateTime;
+use Drupal\commerce_recurring\Usage\UsageRecord;
+
+class Counter extends UsageTypeBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function requiredSubscriptionTypeInterfaces() {
+    return [
+      '\Drupal\commerce_recurring\Usage\SubscriptionFreeUsageInterface',
+    ];
+  }
+
+  /**
+   * Counter usage just needs to be registered for the given start date. The
+   * end date argument (if any) is ignored.
+   */
+  public function addUsage($quantity, DrupalDateTime $start, DrupalDateTime $end = NULL) {
+    $end = $start;
+    $record = $this->storage->createRecord()
+      ->setSubscription($this->subscription)
+      ->setProductVariation($this->groupInfo['product_variation'])
+      ->setStartDate($start)
+      ->setEndDate($end)
+      ->setQuantity($quantity);
+
+    // Counter usage is simple. We set up the record and store it.
+    $this->storage->setRecords([$record]);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function currentUsage(BillingCycle $cycle) {
+    // @TODO: Figure out how to get the current cycle, if one exists.
+
+
+    /* @var \Drupal\commerce_recurring\Usage\UsageRecordInterface[]*/
+    $records = $this->usageHistory($cycle);
+    // Sum up the quantity of all records in the cycle.
+    $quantity = 0;
+    foreach ($records as $record) {
+      $quantity += $record->getQuantity();
+    }
+
+    return $quantity;
+  }
+
+  /**
+   * {@inheritdoc}
+   *
+   * @TODO: Define what a charge is and how to make one
+   * @TODO: Write the subscription history interface/class
+   */
+  public function getCharges(BillingCycle $cycle) {
+    // Add up all of the counter records, grouping by product variation ID in
+    // case someone decided to get fancy.
+    $records = $this->usageHistory($cycle);
+    foreach ($records as $record) {
+      $variationId = $record->getProductVariation()->id();
+      $variations[$variationId] = $record->getProductVariation();
+    }
+    // We only want a unique list of the available product variation IDs.
+    $variationIds = array_unique(array_keys($variations));
+
+    foreach ($histories as $history) {
+
+      $quantities = array_fill_keys($variationIds, 0);
+      foreach ($records as $record) {
+        // Check if this record belongs in this history.
+        if ($record->getStart() >= $history->getStart() && $record->getStart() <= $history->getEnd()) {
+          $id = $record->getProductVariation->id();
+          $quantities[$id] += $record->getQuantity();
+        }
+      }
+
+      // Now we have a set of quantities keyed by product. Use the license to
+      // get a free quantity for each.
+      foreach ($quantities as $variationId => $quantity) {
+        $freeQuantity = $this->subscription->getFreeQuantity($this->name, $history->getId(), $variations[$variationId]);
+        $quantities[$variationId] = max(0, $quantity - $freeQuantity);
+      }
+
+      // Add the variation-keyed quantity list to this history ID for later turning into charges.
+      $finalQuantities[$history->getId()] = $quantities;
+    }
+
+    // Now we generate charges.
+    $charges[] = [];
+
+    foreach ($finalQuantities as $historyId => $productQuantities) {
+      foreach ($productQuantities as $variationId => $quantity) {
+        $this->generateCharge($quantity, $variations[$variationId], $histories[$historyId]);
+      }
+    }
+
+    return $charges;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function generateCharge($quantity, $productVariation, $subscriptionHistory) {
+    // @TODO: Figure this part out! Yay.
+  }
+
+}
diff --git a/src/Plugin/Commerce/UsageType/Gauge.php b/src/Plugin/Commerce/UsageType/Gauge.php
index e69de29..18e6537 100644
--- a/src/Plugin/Commerce/UsageType/Gauge.php
+++ b/src/Plugin/Commerce/UsageType/Gauge.php
@@ -0,0 +1,145 @@
+<?php
+
+namespace Drupal\commerce_recurring\Plugin\Commerce\UsageType;
+
+use Drupal\commerce_recurring\BillingCycle;
+
+class Gauge extends UsageTypeBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function requiredSubscriptionTypeInterfaces() {
+    return [
+      '\Drupal\commerce_recurring\Usage\SubscriptionFreeUsageInterface',
+      '\Drupal\commerce_recurring\Usage\SubscriptionInitialUsageInterface',
+    ];
+  }
+
+  /**
+   * Gauge usage groups expect usage records to span the timespan of all
+   * active plan history entries within the billing cycle.
+   */
+  public function isComplete(BillingCycle $cycle) {
+    $records = $this->usageHistory($cycle)->fetchCycleRecords($this->name, $this->subscription, $cycle);
+
+    // Get the length of the cycle in seconds.
+    $cycleLength = $cycle->getEndTime()->diff($cycle->getStartTime())->format('s') + 1;
+
+    // Add up the length of each record. Note that we use usageHistory() here
+    // (instead of the storage fetch method) because we want the records which
+    // have already been massaged to start and end with the billing cycle start
+    // and end timestamps. Otherwise nothing would ever add up.
+    $recordLength = 0;
+    foreach ($records as $record) {
+      $recordLength += $record->getStart() - $record->getEnd() + 1;
+    }
+
+    // These should match for a gauge group.
+    //
+    // @TODO: Respect non-active subscription statuses once history is locked
+    // down.
+    return $cycleLength == $recordLength;
+  }
+
+  /**
+   * Figure out charges.
+   */
+  public function getCharges(BillingCycle $cycle) {
+
+  }
+
+  /**
+   * Gauge usage needs to make sure to move any overlapping records out of the
+   * way so that even bad code cannot deliberately violate the completeness
+   * rules.
+   */
+  public function addUsage($quantity, $start, $end = NULL) {
+    // Get all the raw records for this group and subscription.
+    $records = $this->storage->fetchCycleRecords($this->name, $this->subscription);
+
+    $newRecord = $this->storage->createRecord()
+      ->setSubscription($this->subscription)
+      ->setProductVariation($this->groupInfo['product_variation'])
+      ->setStartDate($start)
+      ->setEndDate($end)
+      ->setQuantity($quantity);
+
+    $startTime = $start->getTimestamp();
+    $endTime = $end->getTimestamp();
+
+    // We store arrays of records to update and delete.
+    $updates = [$newRecord];
+    $deletions = [];
+
+    foreach ($records as $record) {
+      // The first thing to do is find all records which overlap the new record
+      // somehow.
+      if (($record->getEnd() >= $startTime || $record->getEnd() === NULL) && $record->getStart() < $startTime) {
+        $record->setEnd($startTime - 1);
+        $updates[] = $record;
+      }
+
+      // What else we do to preserve sanity depends on whether this is a
+      // completed record or not.
+      if ($endTime === NULL) {
+        // The new record has no end. That means we merely to need to delete all
+        // other records which come after it, if any.
+        if ($record->getStart() >= $startTime) {
+          $deletions[] = $record;
+        }
+      }
+      else {
+        if ($record->getStart() >= $startTime && $record->getEnd <= $endTime) {
+          // This record has a start and end already. We delete records that are
+          // inside of it.
+          $deletions[] = $record;
+        }
+        elseif ($record->getStart() >= $startTime && $record->getEnd() > $endTime) {
+          $record->setStart($endTime + 1);
+          $updates[] = $record;
+        }
+      }
+    }
+
+    $this->storage->setRecords($updates);
+    $this->storage->deleteRecords($deletions);
+  }
+
+  /**
+   * Get the current usage for a billing cycle.
+   */
+  public function currentUsage(BillingCycle $cycle = NULL) {
+    // Figure out how to get the current cycle, if one exists.
+
+
+    /* @var \Drupal\commerce_recurring\Usage\UsageRecordInterface[]*/
+    $records = $this->storage->fetchCycleRecords($this->name, $this->subscription, $cycle);
+    // Get all the records for the cycle and take the most recent one.
+    $latest = NULL;
+    foreach ($records as $record) {
+      if (is_null($latest) || $record->getStart()->getTimestamp() > $latest->getStart()->getTimestamp()) {
+        $latest = $record;
+      }
+    }
+
+    if (!$latest) {
+      // No usage registered.
+      return 0;
+    }
+    else {
+      return $latest->getQuantity();
+    }
+  }
+
+
+  /**
+   * Fix up records when the subscription changes somehow.
+   */
+  public function onSubscriptionChange() {
+    // @TODO
+    //
+  }
+
+}
+
diff --git a/src/Plugin/Commerce/UsageType/UsageTypeBase.php b/src/Plugin/Commerce/UsageType/UsageTypeBase.php
index 8fe01b1..7099444 100644
--- a/src/Plugin/Commerce/UsageType/UsageTypeBase.php
+++ b/src/Plugin/Commerce/UsageType/UsageTypeBase.php
@@ -2,7 +2,7 @@
 
 namespace Drupal\commerce_recurring\Plugin\Commerce\UsageType;
 
-use Drupal\commerce_order\Entity\OrderInterface;
+use Drupal\commerce_recurring\BillingCycle;
 use Drupal\commerce_recurring\Entity\SubscriptionInterface;
 use Drupal\commerce_recurring\Usage\UsageRecordStorageInterface;
 
@@ -25,14 +25,14 @@ abstract class UsageTypeBase implements UsageTypeInterface {
    *
    * @var string
    */
-  protected $groupName;
+  protected $name;
 
   /**
    * The group definition/info.
    *
    * @var array
    */
-  protected $groupInfo;
+  protected $info;
 
   /**
    * The subscription entity which owns this instance of the usage group.
@@ -44,33 +44,92 @@ abstract class UsageTypeBase implements UsageTypeInterface {
   /**
    * Instantiate a new usage type plugin.
    */
-  public function __construct(UsageRecordStorageInterface $storage, $groupName, $groupInfo, SubscriptionInterface $subscription) {
+  public function __construct(UsageRecordStorageInterface $storage, $name, $info, SubscriptionInterface $subscription) {
     $this->storage = $storage;
-    $this->groupName = $groupName;
-    $this->groupInfo = $groupInfo;
+    $this->name = $name;
+    $this->info = $info;
+
+    // We have to make sure that the subscription implements the necessary
+    // interfaces to work with these usage groups.
+    //
+    // @see \Drupal\commerce_recurring\UsageTypeInterface::requiredSubscriptionInterfaces()
+    foreach ($this->requiredSubscriptionTypeInterfaces() as $interface) {
+      if (!($this->subscription->getType() instanceof $interface)) {
+        throw new \LogicException('Usage groups of type ' . static::class . ' can only be attached to subscription types which implement ' . $interface);
+      }
+    }
+
     $this->subscription = $subscription;
   }
 
   /**
-   * Arbitrary getter for properties, including group info.
+   * Get the subscription of this usage group.
+   *
+   * @return \Drupal\commerce_recurring\Entity\SubscriptionInterface
+   */
+  public function getSubscription() {
+    return $this->subscription;
+  }
+
+  /**
+   * Get the name of the usage group.
+   *
+   * @return string
+   */
+  public function getName() {
+    return $this->name;
+  }
+
+  /**
+   * Get a part of the usage group definition.
    *
    * @param string $property
    *   The property or group info key to get.
    */
-  public function __get($property) {
-    if (!empty($this->{$property})) {
-      return $this->{$property};
-    }
-    elseif (!empty($this->groupInfo[$property])) {
-      return $this->groupInfo[$property];
+  public function getInfo($property) {
+    if (!empty($this->info[$property])) {
+      return $this->info[$property];
     }
   }
 
   /**
    * The default behavior is for usage groups to not enforce change scheduling.
    */
-  public function enforceChangeScheduling($property, OrderInterface $order) {
+  public function enforceChangeScheduling($property, $oldValue, $newValue) {
     return FALSE;
   }
+
+  /**
+   * The default behavior is to regard usage as complete. Usage types with
+   * remote storage or record completeness requirements override this method.
+   */
+  public function isComplete() {
+    return TRUE;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function usageHistory(BillingCycle $cycle) {
+    // Here we fetch the records from storage, and then massage them to line
+    // up with the start and end of the billing cycle.
+    $records = $this->storage->fetchCycleRecords($cycle);
+    $cycleStart = $cycle->getStartDate()->getTimestamp();
+    $cycleEnd = $cycle->getEndDate()->getTimestamp();
+
+    foreach ($records as $record) {
+      if ($record->getStart() < $cycleStart) {
+        $record->setStart($cycleStart);
+      }
+      if (is_null($record->getEnd()) || $record->getEnd() > $cycleEnd) {
+        $record->setEnd($cycleEnd);
+      }
+    }
+
+    // That's all we need to do here.
+    // @TODO: The original module had static caching for this...worth it?
+    // I don't know what the new D8 patterns for this are.
+    return $records;
+  }
 }
 
diff --git a/src/Plugin/Commerce/UsageType/UsageTypeInterface.php b/src/Plugin/Commerce/UsageType/UsageTypeInterface.php
index 3c87825..efa72fa 100644
--- a/src/Plugin/Commerce/UsageType/UsageTypeInterface.php
+++ b/src/Plugin/Commerce/UsageType/UsageTypeInterface.php
@@ -3,30 +3,28 @@
 namespace Drupal\commerce_recurring\Plugin\Commerce\UsageType;
 
 use Drupal\commerce_order\Entity\OrderInterface;
+use Drupal\commerce_recurring\BillingCycle;
+use Drupal\Core\Datetime\DrupalDateTime;
 
 /**
  * Usage group plugin type.
  */
 interface UsageTypeInterface {
-
+  // @TODO: How to do this?
   /**
-   * Determines whether an order contains the necessary information for usage
-   * groups of this type to function. The default usage types depend on the
-   * recurring info field defined on the default recurring order bundle and
-   * used by the default periodic recurring engine implementation, and this
-   * function is used to validate that these usage types will behave properly
-   * (or throw an exception) if attached to a subscription which belongs to a
-   * recurring order type that lacks this information.
+   * Returns the list of required interfaces which a subscription type must
+   * implement in order to leverage usage groups of this type.
    *
-   * Other implementations may not require this information or might require
-   * other order fields (thus depending on a recurring order bundle provided
-   * by a different recurring engine plugin) and these methods should be
-   * implemented accordingly.
+   * This allows usage groups to require the subscription type (which also
+   * returns the list of usage groups) to implement specific logic around
+   * free and initial quantities which are not required by all usage group
+   * types, and which need to be implemented by the subscription type as
+   * their logic can vary from usage group to usage group. (The alternative
+   * is putting callbacks into the usage group definition.)
    *
-   * @param \Drupal\commerce_order\Entity\OrderInterface $order
-   *   The order to be validated.
+   * @return string[]
    */
-  public function validateOrder(OrderInterface $order);
+  public static function requiredSubscriptionTypeInterfaces();
 
   /**
    * Determines whether this usage group plugin should block a given property
@@ -35,11 +33,13 @@ interface UsageTypeInterface {
    * @param string $property
    *   The property which is being changed.
    *
-   * @param \Drupal\commerce_order\Entity\OrderInterface $order
-   *   The recurring order during which the change would fall if scheduling
-   *   is not enforced.
+   * @param mixed $currentValue
+   *   The current value of the property.
+   *
+   * @param mixed $newValue
+   *   The new proposed value of the property.
    */
-  public function enforceChangeScheduling($property, OrderInterface $order);
+  public function enforceChangeScheduling($property, $currentValue, $newValue);
 
   /**
    * Returns a list of usage records for this usage group and a given recurring
@@ -51,7 +51,7 @@ interface UsageTypeInterface {
    * @param \Drupal\commerce_order\Entity\OrderInterface $order
    *   The order for which usage
    */
-  public function usageHistory(OrderInterface $order);
+  public function usageHistory(BillingCycle $cycle);
 
   /**
    * Adds usage for this usage group and subscription and recurring order.
@@ -60,10 +60,18 @@ interface UsageTypeInterface {
    * each implementation to override it with its own list of more specific
    * parameters if desired.
    *
-   * @param mixed ...$params
-   *   The usage parameters.
+   * @param mixed $usage
+   *   The usage being added. In default implementations this is an int, but
+   *   we leave it as mixed here so that other implementations feel free to
+   *   modify this for their own use if they really want.
+   *
+   * @param \Drupal\Core\Datetime\DrupalDateTime $start
+   *   The start time for this record.
+   *
+   * @param \Drupal\Core\Datetime\DrupalDateTime $end
+   *   The end time for this record.
    */
-  public function addUsage(...$params);
+  public function addUsage($usage, DrupalDateTime $start, DrupalDateTime $end);
 
   /**
    * Gets the current usage (normally an integer, but who knows) for this usage
@@ -83,7 +91,7 @@ interface UsageTypeInterface {
    * @param \Drupal\commerce_order\OrderInterface $order
    *   The order for which usage completion should be checked.
    */
-  public function isComplete(OrderInterface $order);
+  public function isComplete(BillingCycle $cycle);
 
   /**
    * Returns the charges for this group and a given recurring order.
@@ -94,14 +102,16 @@ interface UsageTypeInterface {
    * @return \Drupal\commerce_recurring\Charge[]
    *   The computed list of charges.
    */
-  public function getCharges(OrderInterface $order);
+  public function getCharges(BillingCycle $cycle);
 
   /**
-   * We need something to react to changes in the subscription plan.
-   * In 1.x this was "onRevisionChange" but that probably doesn't make sense.
+   * We need something to react to changes in the subscription workflow
+   * and plan. This is used both for groups with "default" usage to register
+   * it as well as to make sure that groups which depend on plan changes or
+   * timing can insert or modify records appropriately in reaction.
    *
    * @TODO: Figure out the parameters for this, if any.
    */
-  public function onPlanChange();
+  public function onSubscriptionChange();
 }
 
diff --git a/src/Usage/SubscriptionFreeUsageInterface.php b/src/Usage/SubscriptionFreeUsageInterface.php
new file mode 100644
index 0000000..2db9441
--- /dev/null
+++ b/src/Usage/SubscriptionFreeUsageInterface.php
@@ -0,0 +1,28 @@
+<?php
+
+namespace Drupal\commerce_recurring\Usage;
+
+use Drupal\commerce_recurring\BillingCycle;
+
+interface SubscriptionFreeUsageInterface {
+  /**
+   * Get the free quantity which corresponds to a given usage charge.
+   *
+   * This is required by both the Gauge and Counter usage type plugins.
+   * Subscription types which want to use usage groups but don't need this
+   * behavior can simply return 0 for all group names.
+   *
+   * @param string $usageGroup
+   *   The name of the usage group to which the proposed charge belongs.
+   *
+   * @param \Drupal\commerce_product\Entity\ProductVariationInterface $variation
+   *   The product variation of the proposed charge.
+   *
+   * @param \Drupal\commerce_recurring\SubscriptionHistoryInterface $history
+   *   The subscription history object that corresponds to the proposed charge.
+   *
+   * @return int
+   *   The free quantity to be deducted from the proposed charge.
+   */
+  public function getFreeQuantity($usageGroup, $variation, $history);
+}
diff --git a/src/Usage/SubscriptionInitialUsageInterface.php b/src/Usage/SubscriptionInitialUsageInterface.php
new file mode 100644
index 0000000..f8e3b27
--- /dev/null
+++ b/src/Usage/SubscriptionInitialUsageInterface.php
@@ -0,0 +1,28 @@
+<?php
+
+namespace Drupal\commerce_recurring\Usage;
+
+use Drupal\commerce_recurring\BillingCycle;
+
+interface SubscriptionInitialUsageInterface {
+  /**
+   * Get the initial quantity which should be registered for the usage group.
+   *
+   * This is required by just the Gauge usage type for registering usage when
+   * a new subscription history modification is made or when the subscription
+   * is initially activated.
+   *
+   * @param string $usageGroup
+   *   The name of the usage group to which the proposed charge belongs.
+   *
+   * @param \Drupal\commerce_product\Entity\ProductVariationInterface $variation
+   *   The product variation of the proposed charge.
+   *
+   * @param \Drupal\commerce_recurring\SubscriptionHistoryInterface $history
+   *   The subscription history object that corresponds to the proposed charge.
+   *
+   * @return int
+   *   The free quantity to be deducted from the proposed charge.
+   */
+  public function getInitialUsage($usageGroup, $variation, $history);
+}
diff --git a/src/Usage/UsageRecordDatabase.php b/src/Usage/UsageRecordDatabase.php
new file mode 100644
index 0000000..066e6bc
--- /dev/null
+++ b/src/Usage/UsageRecordDatabase.php
@@ -0,0 +1,242 @@
+<?php
+
+namespace Drupal\commerce_recurring\Usage;
+
+use Drupal\Core\Datetime\DrupalDateTime;
+use Drupal\commerce_recurring\Entity\SubscriptionInterface;
+use Drupal\commerce_product\Entity\ProductVariationInterface;
+use Drupal\Core\Entity\EntityTypeManagerInterface;
+
+class UsageRecordDatabase {
+
+  /**
+   * The ID of this usage record, if it has been saved to storage.
+   *
+   * @var int
+   */
+  protected $usage_id = NULL;
+
+  /**
+   * The name of the usage group to which this record belongs.
+   *
+   * @var string
+   */
+  protected $usage_group;
+
+  /**
+   * The ID of this record's subscription, if any.
+   *
+   * @var int
+   */
+  protected $subscription_id;
+
+  /**
+   * The ID of this record's product variation, if any.
+   *
+   * @var int
+   */
+  protected $product_variation_id;
+
+  /**
+   * The quantity of this record.
+   *
+   * @var int
+   */
+  protected $quantity;
+
+  /**
+   * The start timestamp of this record.
+   *
+   * @var \Drupal\Core\Datetime\DrupalDateTime
+   */
+  protected $start;
+
+  /**
+   * The end timestamp of this record.
+   *
+   * @var \Drupal\Core\Datetime\DrupalDateTime
+   */
+  protected $end;
+
+  /**
+   * The Drupal entity type manager. Used to load subscriptions and products
+   *   since these database records only store IDs.
+   *
+   * @var \Drupal\Core\Entity\EntityTypeManagerInterface
+   */
+  protected $typeManager;
+
+  /**
+   * Get an array of values for easy insertion via the Drupal database layer.
+   *
+   * @return array
+   */
+  public function getDatabaseValues() {
+    return [
+      'usage_id' => $this->usage_id,
+      'usage_group' => $this->usage_group,
+      'subscription_id' => $this->subscription_id,
+      'product_variation_id' => $this->product_variation_id,
+      'quantity' => $this->quantity,
+      'start' => $this->start,
+      'end' => $this->end,
+    ];
+  }
+
+  /**
+   * Class-specific constructor which injects the storage service for use later.
+   *
+   * @param UsageRecordStorageDatabase $storage
+   *   The storage engine which created this record.
+   */
+  public function __construct(EntityTypeManager $typeManager) {
+    $this->typeManager = $typeManager;
+  }
+
+  /**
+   * Get the ID of this record in storage. Used to figure out inserts vs merges
+   * in the default database storage implementation.
+   *
+   * Note: There is no setter for the ID, this can only be set by the storage
+   * engine.
+   *
+   * @return int
+   */
+  public function getId() {
+    return $this->usage_id;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getGroupName() {
+    return $this->usage_group;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setGroupName($groupName) {
+    $this->usage_group = $groupName;
+
+    return $this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getSubscription() {
+    $storage = $this->typeManager->getStorage('commerce_subscription');
+
+    return $storage->load($this->subscription_id);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setSubscription(SubscriptionInterface $subscription) {
+    $this->subscription_id = $subscription->id();
+
+    return $this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getProductVariation() {
+    $storage = $this->typeManager->getStorage('commerce_product_variation');
+
+    return $storage->load($this->product_variation_id);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setProductVariation(ProductVariationInterface $variation) {
+    $this->product_variation_id = $variation->id();
+
+    return $this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getQuantity() {
+    return (int) $this->quantity;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setQuantity($quantity) {
+    $this->quantity = (int) $quantity;
+
+    return $this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getStartDate() {
+    return is_null($this->start) ? NULL : new DrupalDateTime($this->start);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setStartDate(DrupalDateTime $start) {
+    $this->start = $start->getTimestamp();
+
+    return $this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getStart() {
+    return $this->start;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setStart($start) {
+    $this->start = $start;
+
+    return $this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getEndDate() {
+    return is_null($this->end) ? NULL : new DrupalDateTime($this->end);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setEndDate(DrupalDateTime $end) {
+    $this->end = $end->getTimestamp();
+
+    return $this;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getEnd() {
+    return $this->end;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function setEnd($end) {
+    $this->end = $end;
+
+    return $this;
+  }
+
+}
+
diff --git a/src/Usage/UsageRecordInterface.php b/src/Usage/UsageRecordInterface.php
new file mode 100644
index 0000000..68bc561
--- /dev/null
+++ b/src/Usage/UsageRecordInterface.php
@@ -0,0 +1,139 @@
+<?php
+
+namespace Drupal\commerce_recurring\Usage;
+
+use Drupal\Core\Datetime\DrupalDateTime;
+use Drupal\commerce_recurring\Entity\SubscriptionInterface;
+use Drupal\commerce_product\Entity\ProductVariationInterface;
+
+interface UsageRecordInterface {
+
+  /**
+   * Get the group name to which this record belongs.
+   *
+   * @return string
+   */
+  public function getGroupName();
+
+  /**
+   * Set the group name to which this record belongs.
+   *
+   * @param string $groupName
+   *
+   * @return this
+   */
+  public function setGroupName($groupName);
+
+  /**
+   * Get the subscription with which this record is associated.
+   *
+   * @return \Drupal\commerce_recurring\Entity\SubscriptionInterface
+   */
+  public function getSubscription();
+
+  /**
+   * Set the subscription with which this record is associated.
+   *
+   * @param \Drupal\commerce_recurring\Entity\SubscriptionInterface $subscription
+   *
+   * @return self
+   */
+  public function setSubscription(SubscriptionInterface $subscription);
+
+  /**
+   * Get the product variation which this record will charge for.
+   *
+   * @return \Drupal\commerce_product\Entity\ProductVariationInterface
+   */
+  public function getProductVariation();
+
+  /**
+   * Set the product variation which this record will charge for.
+   *
+   * @param \Drupal\commerce_product\Entity\ProductVariationInterface $variation
+   *
+   * @return self
+   */
+  public function setProductVariation(ProductVariationInterface $variation);
+
+  /**
+   * Get the quantity of this record.
+   *
+   * @return int
+   */
+  public function getQuantity();
+
+  /**
+   * Set the quantity of this record.
+   *
+   * @param int $quantity
+   *
+   * @return self
+   */
+  public function setQuantity($quantity);
+
+    /**
+   * Get the start time of this record.
+   *
+   * @return \Drupal\Core\Datetime\DrupalDateTime
+   */
+  public function getStartDate();
+
+  /**
+   * Set the start time of this record.
+   *
+   * @param \Drupal\Core\Datetime\DrupalDateTime $start
+   *
+   * @return self
+   */
+  public function setStartDate(DrupalDateTime $start);
+
+  /**
+   * Get the start timestamp of this record.
+   *
+   * @return int
+   */
+  public function getStart();
+
+  /**
+   * Set the start timestamp of this record.
+   *
+   * @param int|NULL $start
+   *
+   * @return self
+   */
+  public function setStart($start);
+
+  /**
+   * Get the end time of this record.
+   *
+   * @return \Drupal\Core\Datetime\DrupalDateTime
+   */
+  public function getEndDate();
+
+  /**
+   * Set the end time of this record.
+   *
+   * @param \Drupal\Core\Datetime\DrupalDateTime $end
+   *
+   * @return self
+   */
+  public function setEndDate(DrupalDateTime $end);
+
+  /**
+   * Get the end timestamp of this record.
+   *
+   * @return int
+   */
+  public function getEnd();
+
+  /**
+   * Set the end timestamp of this record.
+   *
+   * @param int|NULL $end
+   *
+   * @return self
+   */
+  public function setEnd(DrupalDateTime $end);
+}
+
diff --git a/src/Usage/UsageRecordStorageDatabase.php b/src/Usage/UsageRecordStorageDatabase.php
index dd06b5a..d17ab49 100644
--- a/src/Usage/UsageRecordStorageDatabase.php
+++ b/src/Usage/UsageRecordStorageDatabase.php
@@ -1,14 +1,33 @@
 <?php
 
-namespace Drupal\commerce_recurring;
+namespace Drupal\commerce_recurring\Usage;
 
 use Drupal\Core\Database\Connection;
 use Drupal\Core\Database\DatabaseException;
+use Drupal\commerce_recurring\Entity\SubscriptionInterface;
+use Drupal\commerce_recurring\BillingCycle;
+use Drupal\Core\Database\StatementInterface;
+use PDO;
 
 /**
  * Provides the default database storage backend for usage records.
  */
 class UsageRecordStorageDatabase implements UsageRecordStorageInterface {
+
+  /**
+   * The table name to query from.
+   *
+   * @var string
+   */
+  protected $tableName = 'commerce_recurring_usage';
+
+  /**
+   * The usage record class to use.
+   *
+   * @var string
+   */
+  protected $recordClass = 'UsageRecordDatabase';
+
   /**
    * The database connection in use.
    *
@@ -21,68 +40,183 @@ class UsageRecordStorageDatabase implements UsageRecordStorageInterface {
    *
    * @param \Drupal\Core\Database\Connection $connection
    *   The database connection for usage record storage.
+   *
+   * @param string $recordClass
+   *   The fully-qualified name of the record class to be used.
+   *
+   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $typeManager
+   *   The entity type manager service.
+   *
    */
-  public function __construct(Connection $connection) {
+  public function __construct(Connection $connection, $recordClass, $typeManager) {
     $this->connection = $connection;
+    $this->recordClass = $recordClass;
+    $this->typeManager = $typeManager;
   }
 
   /**
    * Fetch all records which pertain to a given group, subscription, and
    * recurring order.
    *
-   * @param string $group_name
+   * @param string $groupName
    *   The group name. Required.
    *
-   * @param int $subscription_id
+   * @param \Drupal\commerce_recurring\Entity\SubscriptionInterface $subscription
    *   The subscription. Optional.
    *
-   * @param int $order_id
-   *   The recurring order. Optional.
+   * @param \Drupal\commerce_recurring\BillingCycle $cycle
+   *   The billing cycle. Optional.
    */
-  protected function fetchRecords($group_name, $subscription_id = NULL, $order_id = NULL) {
+  public function fetchCycleRecords($groupName, SubscriptionInterface $subscription = NULL, BillingCycle $cycle = NULL) {
+    $query = $this->connection->select($this->tableName);
+    $query->condition('usage_group', $groupName);
+    if (!is_null($subscription)) {
+      $query->condition('subscription_id', $subscription->getIdentifier());
+    }
+    if (!is_null($cycle)) {
+      // To accurately get all records, we need to find any that overlap with
+      // the time period of the billing cycle.
+      $start = $cycle->getStartDate();
+      $end = $cycle->getEndDate();
 
+      // Since some usage records have no end, we need to search for any which
+      // end later than the cycle's start date or have no end.
+      $ends = $query->orConditionGroup()
+        ->condition('end', $start->format('U'), '>')
+        ->isNull('end');
+
+      // Combine that with a condition to find those which start earlier than
+      // the cycle's end date and we have everything we need.
+      $timing = $query->andConditionGroup()
+        ->condition('start', $end->format('U'), '<')
+        ->condition($ends);
+
+      // Et voila.
+      $query->condition($timing);
+    }
+
+    $query->addTag('commerce_recurring_usage');
+
+    $results = $query->execute();
+
+    if (!is_null($results)) {
+      return $this->createFromStorage($results);
+    }
+    else {
+      return [];
+    }
   }
 
   /**
-   * Run multiple storage operations while enforcing consistency.
+   * Factory method for turning raw records (from the database) into record
+   *   objects. Leverages PDO::FETCH_CLASS
    *
-   * @param array $operations
-   *   A list of operations, each consisting of a 2-element array composed of:
+   * @param array $raw
+   *   The raw records as associative arrays.
    *
-   *   1. A method name
-   *   2. A list of arguments
+   * @return \Drupal\commerce_recurring\Usage\UsageRecordInterface[]
+   *   The usage record objects.
+   */
+  public function createFromStorage(StatementInterface $results) {
+    $results->setFetchMode(PDO::FETCH_CLASS, $this->recordClass, [$this->typeManager]);
+
+    return $results->fetchAll();
+  }
+
+  /**
+   * Create a new usage record object shell. This injects the type manager
+   * service so the record can use it to fetch stuff.
+   */
+  public function createRecord() {
+    $recordClass = $this->recordClass;
+    // Syntax is a pain.
+    $record = new $recordClass($this->typeManager);
+
+    return $record;
+  }
+
+  /**
+   * Insert a usage record.
    *
-   * @return void
+   * @param \Drupal\commerce_recurring\Usage\UsageRecordInterface[] $record
+   *   The usage record to be inserted.
    */
-  public function doMultiple($operations) {
-    // @TODO: Open a transaction.
-    //
+  public function setRecords(array $records) {
+    $txn = $this->connection->startTransaction();
+
+    $inserts = [];
+    $updates = [];
+    foreach ($records as $record) {
+      if ($record->getId()) {
+        // Records which already have an ID must be updated.
+        $updates[] = $record->getDatabaseValues();
+      }
+      else {
+        $inserts[] = $record->getDatabaseValues();
+      }
+    }
+
     try {
-      // Run each operation.
-      foreach ($operations as $op) {
-        // The second element of the operation should be a list of arguments.
-        list($method, $args) = $op;
-        $this->$method(...$args);
+      if (!empty($updates)) {
+        foreach ($updates as $update) {
+          $count = $this->connection->update($this->tableName)
+            ->fields($update)
+            ->condition('usage_id', $update['usage_id'])
+            ->execute();
+
+          // The number of rows matched had damn well better be 1.
+          if ($count != 1) {
+            throw new \LogicException("Failed to update usage record $update[usage_id].");
+          }
+        }
       }
 
-      // Hopefully we're done here.
-      $transaction->commit();
+      if (!empty($inserts)) {
+        $query = $this->connection->insert($this->tableName);
+        foreach ($inserts as $insert) {
+          $query->values($insert);
+        }
+
+        // Unfortunately, we can't really check this to make sure the right
+        // number were inserted without a lot more magic. Maybe @TODO?
+        $query->execute();
+      }
     }
-    catch (DatabaseException $e) {
-      // Something went wrong. Sad.
-      $transaction->rollback();
-      // Propagate the exception? Not sure.
-      // @TODO: Figure this out.
+    catch (\Exception $e) {
+      // Roll this back.
+      $txn->rollback();
       throw $e;
     }
+
+    // We're done. Yay.
+    $txn->commit();
   }
 
   /**
-   * Insert a usage record.
+   * Delete one or more usage records.
    *
-   * @param mixed $record
-   *   The usage record to be inserted.
+   * @param \Drupal\commerce_recurring\Usage\UsageRecordInterface[] $records
+   *   The usage records to be deleted.
    */
+  public function deleteRecords(array $records) {
+    $txn = $this->connection->startTransaction();
+
+    try {
+      // Delete each record.
+      foreach ($records as $record) {
+        if ($record->getId()) {
+          $this->connection->delete($this->tableName)
+            ->condition('usage_id', $record->getId())
+            ->execute();
+        }
+      }
+    }
+    catch (\Exception $e) {
+      $txn->rollback();
+      throw $e;
+    }
 
+    // We're done. Yay.
+  }
 }
 
diff --git a/src/Usage/UsageRecordStorageInterface.php b/src/Usage/UsageRecordStorageInterface.php
index 2ddcbf2..7b3815f 100644
--- a/src/Usage/UsageRecordStorageInterface.php
+++ b/src/Usage/UsageRecordStorageInterface.php
@@ -2,7 +2,7 @@
 
 namespace Drupal\commerce_recurring\Usage;
 
-use Drupal\commerce_recurring\Usage\UsageRecordInterface;
+use Drupal\commerce_recurring\BillingCycle;
 
 /**
  * Storage interface for usage records.
@@ -19,54 +19,33 @@ interface UsageRecordStorageInterface {
    * @param \Drupal\commerce_recurring\Entity\SubscriptionInterface
    *   The subscription.
    *
-   * @param \Drupal\commerce_order\Entity\OrderInterface
-   *   The recurring order.
-   */
-  public function fetchOrderRecords($group_name, $subscription, $order);
-
-  /**
-   * Fetch all records which pertain to a given group and subscription.
+   * @param \Drupal\commerce_recurring\BillingCycle
+   *   The billing cycle.
    *
-   * @param string $group_name
-   *   The group name.
-   *
-   * @param \Drupal\commerce_recurring\Entity\SubscriptionInterface
-   *   The subscription.
+   * @return \Drupal\commerce_recurring\Usage\UsageRecordInterface[]
+   *   The usage records.
    */
-  public function fetchSubscriptionRecords($group_name, $subscription);
+  public function fetchCycleRecords($group_name, $subscription, $cycle);
 
   /**
-   * Create a usage record.
+   * Create or update one or more usage records.
    *
-   * @param \Drupal\commerce_recurring\Usage\UsageRecordInterface
-   *   The usage record to be created.
+   * @param \Drupal\commerce_recurring\Usage\UsageRecordInterface[]
+   *   The usage records to be created or updated.
    *
    * @return void
    */
-  public function createRecord(UsageRecordInterface $record);
+  public function setRecords(array $records);
 
   /**
-   * Update a usage record.
+   * Delete one or more usage records.
    *
-   * @param \Drupal\commerce_recurring\Usage\UsageRecordInterface
-   *   The usage record to be modified.
+   * @param \Drupal\commerce_recurring\Usage\UsageRecordInterface[]
+   *   The usage records to be created or updated.
    *
    * @return void
    */
-  public function modifyRecord(UsageRecordInterface $record);
+  public function deleteRecords(array $records);
 
-  /**
-   * Perform multiple usage operations in a consistent way, failing if one or
-   * more of the requested operations does not succeed.
-   *
-   * @param array $operations
-   *   A list of operations, each consisting of a 2-element array composed of:
-   *
-   *   1. A method name
-   *   2. A list of arguments
-   *
-   * @return void
-   */
-  public function doMultiple($operations);
 }
 
