As far as I understand the problem, BrowserUk needs to read from the "old" datastructure, so local isn't really going to help, because it gives you a nice empty variable which effectively hides the old variable and does not do a complete copy of the datastructure.