Reworked debug drawing.