Add more code to queue.rs