Basic network stuff and added a logger