David C: adding script that finds pulse begin