Add globals
Fix visibility of globals in layout
Merge pull request #2 from Ptico/master

Add globals