Moved debug text handler.