Correctly intialize globals