Removed unnecessary open() on file