Refactored read file code