Add team() function