Added some temporary code to try to figure out what is going wrong