Converted HD computation to transactional type