Code for network throttling