Allow `target` and `targetQueue` to be undefined.