More code on next action selection.