Forgot to pass AttributeList by reference.
Added field for name.