B: altered job picking filter to consider jobs without staff_id