Rewrite part of the example code from Adafruit FONA