Added fetchTeamInfo function