Prepare bandwidth scheduler code