Fixed var scoping, was global

My IDE told me that the variable "value" was global scoped .. fixed now.