Replaced array of string with array of objects.