Read files for PI and OI