Teach pmod_pt to handle record_index