Added code for priority updates.