Whoops, added some debugging information to the JSON output, and fixed parameter.