Priority queue change

Signed-off-by: AkilaPeiris <akila.peiris@hotmail.com>