Added some debug statements.