Taking away global variables