Removed the toArray statement