Working first version of que detector. It still needs to be tuned in order to work properly. Removal of cycles in the que-graph would make it much nicer too.