Update, will accept an ArrayList rather than Array.