Implementing global variables