Changed cell filling alg