Refactoring: Made number of rounds a variable.