Created working enqueue/dequeue methods to sort by importance.