Added additional debug code.