Overloaded with debug messages to see what's wrong.