Factor out pendingTagArray