Moved global variables block