Remove addAttribute, not sure why it was left in