Attempt to get global vars working