Fixes issue when multiple simultaneous requests are sent.