Bandwidth calculation some code added