Create local and global vars