Brand new version for block-per-neuron algo.