Keep pushing into the out_buffer without a sleep interval if the sqs queue isn't empty.
Cleaned up queue name generation
Some code reorg for readability