Proper usage of merge_attributes