Now allows add core to work even without selecting any rows.