Refactoring types and added Twilio monad