ADD pulseIn function (experimental)