public String getFormattedResult(boolean hasColors) {
        try {
          gson = new GsonBuilder().setPrettyPrinting().create();
        } catch(IllegalStateException ex) {
          ex.printStackTrace();
          return "";
        }
        PirateBayJsonItem[] results = gson.fromJson(this.getJson(), PirateBayJsonItem[].class);

        /* Fixes NullPointerException Bug that occurs if the URL DNE */
        if(results == null) {
          return "";
        }

        String output = "";
//        System.out.println(results.length);
//        System.out.println(results.toString());
        if(hasColors) {
          for (PirateBayJsonItem result : results) {
            output += result.getColorString();
          }
        } else {
          for (PirateBayJsonItem result : results) {
            output += result.toString();
          }
        }
        return output;
    }