Add metadata writer stuff