Added lopped callback for switching proxy.