Debugged Hahn subroutine for CPMG cases.