Adding check for non-zero files.