More ugly debugging code.