Changed pulling value from option to local variable