Remove some dead code, turn on network debugging