Added debug lines into the catch statements.