added ability to run a specified number of rounds