Added some debug ouput.