Modified array class for batch saving