Revising twilio logic