Refactor ideas.index.
Add file to store constant points and limits.