Pass team info to functions