Properly use params for the socket, and remove some debug