Tried adding in fog. Region index calculation wrong ... ???
merged with master