Applied IndexData patch; added default values for externally defined variables.