Don't shadow global
Refactor: Localize variables
Refactor: Localize variables
Refactor: Localize variable
Refactor: Replace integral type with bool
Refactor: Localize variable
Refactor: Localize variable
Refactor: Localize variable
Refactor: Localize variable
Refactor: Inline variable
Refactor: Localize variable
Refactor: Localize variable
Refactor: Localize variable
Refactor: Localize variable
Refactor: Replace integral type with bool
Refactor: Localize variable
Refactor: Localize variable
Refactor: Localize variable