#2: Added some debugging code to try to figure out the rendering issue