Make global variables immutable