Added local variable declaration