Minimize global variables