Set global variables