Updating: arrayptr -> stack-allocated