Added debug and pacet size option