Factor out transfer rate calculation.