Added reallocation when adding beyond capacity.