Added debug option and removed it from test.js.