Changed private local variable to object property