Removed unused _queue_derive function