Add what was already implemented to modify the fetch queue

Christof Hanke's changes in order to reorder the fetch queue. Not yet
complete, but also not at all dangarous.