Support replace pass limiting.