Added functions to add priority message in case of priority queues.