Make determine min cell a class method.