Added option for excluding core nodes also