Incorporate metadata gathering into publisher