Working rough version of decomposition and comparison.