Added debug messages to narrow down #440.