Rename team function to be more expressive