Further optimized the Twilio code