Guess I should make this variable not global.