Implemented some debug.