Add scope specification for globals
Merge commit '4496f31cce56eab880a9546ce4c6c90fb586e386'