Use IORef for Pending