With long-term investing, index funds are a great tool.