`pending` seems unused here