Attach metadata to earner via constructor.