Add debugging in proxy