Added setting for maximum number of rounds