Some network code again. Added connection Handler