Add initial socked code