Make variables global from the beginning.