Pulling out file reading from the recommendation portion