Merge attributes method