Use DIMM0 et al in lots more places instead of hardocding values.