Logic to fetch teams + bugfixes.