Modifications to incorporate divergence-like operation