Change some debugging messages to use DBG()