Modified block distribution alg