Added code to limit and control request queue sizes