Add missing variable declarations