Added more debugging messages.
This is starting to get a little out of hand I think, but I will keep going to see how it goes.