Removed options.teams argument.
Refactored lifecycle, index