File reading now works