Unnecessary file open removed.