Pre segment switch

If we're going to expose this function, can we make it a bit more generic? We could allow it to accept a generic object that included the bandwidth stats we're looking for.