Refactored how socket is written to