Added start of socket code, doesnt work yet