Added code for the schedulers priority & lottery.