Updated Flag to socket