Removed unneeded file open.