Added debug argument, does nothing, not implemented yet.