Network connection handler

#11