Implemented some debug