Moved globals to __init__