Yup, a guy across the room just explained it. Finally getting to grips with all this referencing business. Also figured out that I should be using ref() rather than my dodgy 'assign reference to a string and test that' business with the '$test' variable.