Should only open the file if it is being queried or updating.
Should only open the file if it is being queried or updating.