Added code to change factor covariates.