Added overloaded index method to allow automatic id generation