Added u, c and E queue states checking (e and E not tested yet)