Added support for tournament automation.