Format codes
Modify judgement of member's state