Added missing variable declarations