Added file read check.