Adding replacing merchant logic