Added function to handle checking and dequeuing of unmatched responses.