Changed thin to socket