Commenting and socket refreshing