Implement teams in loader

Part of #78.