Handle empty queues correctly. Remove some log messages.