Refactor: Localize variables
Refactor: Localize variables
Refactor: Localize variables
Correct compile error