support limiting the number of waves to send