Added missing local variable declaration