Added more debug statements.