Flag Socket Working