[#1] added debug option.