Fix to not continuously create file pointers.