Cleaning up the setRounds method.