Abstraction for writing extra data attributes