Added debug/nodebug helper functions