Added set_logic_on_row