Added support for a queue 'history' and added some comments and a TODO