How does the tool determine the recommended and alternate plans?