SDM: Simplified the mean-model and variance calculation further