added bandwidth option to limit the bandwidth to a set value