All the variables modified by this code are either per-MB arrays or have been moved to the per-slice context