Changed End command to be team compatible