Changed env to be included on 'global' variable in closure