Updating maxrequests code