Passing teams by reference