Refactored to make twilio and elasticsearch to execute in the background
Refactored and added logging