Updated the Twilio code so that it only sends one event