Implement collections.deque for initial queue of records instead of List; change default sleep, max_queue_length