Change to use the right offset for index in the replica creation loop. Remove configname addition to param while creating replica and add a todo to figure it out as per the parent and use it.