Scripting for labels