Get rid of globals.