File reading updated