Should have the teams correctly generated.  Maybe.  I dont know how to
call it from your code.  Not completely tested, but I haven't really
slept yet, so i'm doing that instead.