Adding basic priorizing support to UpdateQueue

Also fixing some of the runtime errors.