Add some debug lines to identify where things are going hairy