Added check for bw <= maxBw