Implement various fixes, e.g. in queue and in processing stats.