Add error checking for team.