Update queueloop to use rvalues

Now we can pass through the queue without copying