Added multiple id generation capability