Adjusted SocketTask.java