Use element array for objects