Added support for auto indexing

Added support for Auto Indexing

No idea why this doesnt ignore whitespace