Fixing the throttling code