Updated priority scheduler