Reordered functions to allow ArduinoMakefile to work