Changed addAll to a loop of add()

For compat with lower API versions