Added functionality to delete rows.