Added tourney code and method to use it.