Added option to extend existing arrays