Record generator handles index argument