Adding toArray