Made sure final array elements end in a comma