Version number put in a variable, adaptations to legacy.lua