Changes to coherence code