Add logging in network