This function ensures global data integrity when you supply a custom driver that uses globally defined variables.