Added priorities ad update functionalilty