Event logic for Twilio app