Modified request to use Array list instead of array.