Better error messages for missing variables.