Still more ugly debugging code.