Added HR calculation.