Bug changes to file opening procedures.