Updated pseudo-array-template