Added start of code to create a threaded network listener