Proper way of updating the table.