ForageTask implements the new node selection model.