Added a bit logic for cells.