Added block-level correlations. Need to speed it up.