Updated to match the interface change in B::Replace