     String toconvert = in.substring(codeIndex + 1);
     return toconvert.toInt();
   }
-  return -2;
+
+  return INT_MIN;
 }
 
 String trim(String in) {
   int spaceIndex = in.indexOf(" ");
   return in.substring(spaceIndex + 1, in.length());
 }
-
-int strtoint(String in) {return in.toInt();}
 
 /*
  * This function does not yet have any GCode parsing functionality,

  int spaceIndex = in.indexOf(" ");
  bool toEnd = false;

  if(spaceIndex == -1) {
    toEnd = true;
  }

  if(codeIndex == -1) {
    return -1;
  }

  if(!toEnd) {


#define PS_ON_PIN          12
#define KILL_PIN           -1
#define INT_MIN            -10000 // Unfortunately needed for error-checking
                                  // Not technically the lowest value for int
                                  // however, got overflow errors when I did
                                  // enter the lowest value

byte downline[8] = {
  B10000,
