Make addAttribute() public