Replace the set_variable call no longer available in version >= 2.8.