Removed unnecessary reading of file