Added dose calculation.