Re added debugging code.