Add some diagnostic print statements