Better task fetching - better respect for priorities