Deciding which steps to do next.