Added pad index