Changed to using PriorityQueue as SMSQueue