Adding stack-ranking, more robustness.