Adds missing variable declarations.