Fix scheduler to look at all candidate items, in priority order