Added simple debugging code.