changed threshold window length from 60 to 150. More robust when S2 pulse is well visible