Fixed update for new API (WantsToReplace -> ReplaceMethod)