Add auto index ability.
Merge pull request #42 from greboid/master

Add auto index ability