Changed socket to handle to get line buffering