Simple index generator