Adding device index