I'm not sure if you need to walk the scope chain like this. @Constellation: I'm sure you know a better way.