Working on priority scheduling