Using pulseIn method for compatibility reasons