Refactored Global constant to local variable

Signed-off-by: Gerard Cote <grcote@gmail.com>