Adding debugging for remoting