Addded more debugging code.