Better checks for functions used in OFFile.