Added read access check before file read