Disable access to networking when running code.
Some refractor.