Reintroduced example which didn't work for mixed covariates.