Changed to use addAll() method instead of add()