Added index method to InstructionGroup