Implemented debugging.