Make the usage of global variable obvious
Refactor to use variable