Reintegrated bandwidth estimation code