Added pointer count condition