Now deals with states and queues appropriate smses