Mod: switch to state machine for team.