#KJ-47. Implemented some debug helpers.