Moving queue checking out of critical thread.