Added set_cell function