Invia SMS: Computer science logic