Moved r1::queue to smart pointers