Switching from fstream pointers to references.