More debugging code for identifying problem