Adding zindex and arpr2 functions