Added support pushing multiple elements into the queue.