Added check for all sheets.