Add macros checking values of key variables.