Add debug messages to trace this if needed.