Added a nice DEBUG interface