Added debug statements.